#！sur/bin/env python3
# -*- coding:utf-8 -*-

def findMinAndMax(L):
    #寻找最小值，最大值
    for i in L:
        Max = L[0]
        Min = L[0]
        if Max <= i:
            Max = i
        if Min >= i:
            Min = i
    #打印出最小值，最大值在list中的位置 
    for x,value in enumerate(L):
        if Min == value:
            print('List的第',x,'个是最小值：',Min,sep='')
        else:
            continue
    for x,value in enumerate(L):
        if Max == value:
            print('List的第',x,'个是最大值：',Max,sep='')
        else:
            continue
           
    return Min, Max

L1 = [1,2,3,4,5,77,6,7,1,77,22,33,4,1,77,]
findMinAndMax(L1)